package com.itheima.d1_homework;

public class Test2 {
    public static void main(String[] args) {
        Bear bear = new Bear();
        bear.setColor("白色");
        bear.setLeg(4);
        bear.eat();
        bear.catchFish();

        Panda panda = new Panda();
        panda.setColor("黑色");
        panda.setLeg(4);
        panda.eat();
        panda.climbTree();
    }
}
